{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户信息</title>

</head>
<body>

<form action="/app001/adduser/" method="post">
    用户名:<input type="text" name="user_name"><br>
    用户密码：<input type="password" name="user_password"><br>
    <hr>
    身份证：
    <select id="card" name="card_num">
        <option value="1" id="card_num">============请选择=============</option>
    </select>&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" onclick="method01()">添加身份证</a>
    <br>
    <input type="submit" value="提交">
    <input type="reset" value="注册">

</form>
<script type="text/javascript" src="{% static 'js/json2.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery-3.3.1.js' %}"></script>
<script type="text/javascript">
    function method01() {
        var height = 100;
        var width = 300;
        var top = Math.round((window.screen.height - height) / 2);
        var left = Math.round((window.screen.width - width) / 2);
        window.open('/app001/add_card/', '',"height=" + height + ", width=" + width + ", top=" + top + ", left= " + left + ", toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=yes, status=no");

    }
</script>

</body>
</html>